<%@ page contentType="text/html; charset=UTF-8"%>
<jsp:directive.page import="java.util.List" />
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>热门搜索</title>
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<%
List hopList = (List)request.getAttribute("hopsearchlist");
int count = hopList.size()-1;
 %>
	<body>
		<table width="880" border="0" align="center" cellpadding="0"
			cellspacing="1">
			<%@ include file="/jsp/top.jsp"%>
			<tr>
				<td align="center" valign="top">
					<table width="880" border="0" cellspacing="1" cellpadding="0">

						<tr>
							<td align="left" valign="top">
								<table width="100%" border="0" cellpadding="0" cellspacing="1"
									class="line1">
									<tr>
										<td class="mtdtextleft">
											<logic:present name="hopsearchlist">
												<logic:iterate id="hopsearch" name="hopsearchlist"
													type="com.ibatis.po.system.THopSearch" indexId="index">
													<%
													if (index % 3 == 0) {
													   if(index==count){
													%>
													<tr>
														<td class="mtdtextleft">
															&nbsp;
															<a
																href="/com/struts/web/job/viewjob.do?method=hopsearch&staId=${hopsearch.id}&hopsearchname=${hopsearch.searchName}"
																target="_blank">${hopsearch.searchName}</a>
														</td>
														<td class="mtdtextleft">
															&nbsp;
														</td>
														<td class="mtdtextleft">
															&nbsp;
														</td>
														<%
														}else{
														 %>
													
													<tr>
														<td class="mtdtextleft">
															&nbsp;
															<a
																href="/com/struts/web/job/viewjob.do?method=hopsearch&staId=${hopsearch.id}&hopsearchname=${hopsearch.searchName}"
																target="_blank">${hopsearch.searchName}</a>
														</td>

														<%
														}
														} else if (index % 3 == 1) {
														    if(index==count){
														%>
														<td class="mtdtextleft">
															&nbsp;
															<a
																href="/com/struts/web/job/viewjob.do?method=hopsearch&staId=${hopsearch.id}&hopsearchname=${hopsearch.searchName}"
																target="_blank">${hopsearch.searchName}</a>
														</td>
														<td class="mtdtextleft">
															&nbsp;
														</td>
														<%
														}
														else{
														 %>
														<td class="mtdtextleft">
															&nbsp;
															<a
																href="/com/struts/web/job/viewjob.do?method=hopsearch&staId=${hopsearch.id}&hopsearchname=${hopsearch.searchName}"
																target="_blank">${hopsearch.searchName}</a>
														</td>
														<%
														}
														} else  {
														%>
														<td class="mtdtextleft">
															&nbsp;
															<a
																href="/com/struts/web/job/viewjob.do?method=hopsearch&staId=${hopsearch.id}&hopsearchname=${hopsearch.searchName}"
																target="_blank">${hopsearch.searchName}</a>
														</td>
													</tr>
													<%
													}
													%>
												</logic:iterate>
											</logic:present>
											<script type="text/javascript">
											
											</script>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<%@ include file="/jsp/bottom.jsp"%>
		</table>
	</body>
</html>
